import request from '@/utils/request'
const api_name = '/admin/user'

export default{

//获取用户列表方法
getUserList(page, limit, userInfoQueryVo) {
    return request({
        url: `${api_name}/list/${page}/${limit}`,
        method: 'get',
        params:userInfoQueryVo
    })
  },

//用户锁定-解锁 方法
lockOrUnLock(id, status) {
  return request({
      url: `${api_name}/lockOrUnLock/${id}/${status}`,
      method: 'get'
  })
},

//获得用户详情信息
showUserInfoByUserId(userId){
   return request({
      url: `${api_name}/showUserInfoByUserId/${userId}`,
      method: 'get'
  })
},

//认证审批
authUser(id, authStatus) {
  return request({
    url: `${api_name}/authUser/${id}/${authStatus}`,
    method: 'get'
  })
},

//查看订单详情
getById(id) {
  return request({
    url: `${api_name}/show/${id}`,
    method: 'get'
  })
}
}